#! /bin/sh

# This script used to install vim8 from sources, unpack vim8*.tar.gz2 and move
# the script to vim80/src, so execute it. you can acquire the sources of vim8
# from:
#
#   https://github.com/vim/vim.git
#   ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2
#
# Build vim8 require the environment of gcc and some dependence library, eg gtk
# for gui, python, etc. Have a introduce in Github by Valloric:
#
#   https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source
#

./configure --with-features=huge \
            --enable-multibyte \
            --enable-perlinterp=yes \
            --enable-python3interp=yes \
            --with-python3-config-dir=/usr/lib/python3.4/config-3.4m-arm-linux-gnueabihf \
            --enable-cscope \
            --enable-gui=gtk2 \
            --prefix=/usr

make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/vim80 MAKE="make -e"
